new Vue({
    el: '#app',
    data() {
        return {
            defaultImage: '',
            form: {
                ID_Name: '',
                Image: '',
            }
        }
    },
    mounted() {
        this.getData();
    },
    methods: {
        getData() {
            httpRequest({
                url: '/generalBusiness/generalQueryByTableName',
                type: 'GET',
                data: {
                    Data: 'base_system_user_info',
                    Condition: `User_Number='${getCookie('user')}'`,
                }
            }).then(data => {
                if (data.length == 1) {
                    this.form = data[0];     
                }
            }).catch(xhr => {
                this.$message({
                    message: '系统错误，请联系开发者!',
                    type: 'error'
                })
            })
        }
    },
})